package org.mspring.crm.entity.permission;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * McrmResources entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "resource")
public class Resource implements java.io.Serializable {

    // Fields

    private Integer id;
    private String name;
    private String type;
    private String string;
    private String description;
    private boolean enabled;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "resource_id", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "resource_name", length = 100)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "resource_type", length = 100)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Column(name = "resource_string", length = 200)
    public String getString() {
        return string;
    }

    public void setString(String string) {
        this.string = string;
    }

    @Column(name = "resource_desc", length = 200)
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name = "enabled")
    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

}